/**
 * @projectName study_java
 * @package Factory.method
 * @className Factory.method.DogFactory
 */
package Factory.method;

import Factory.Dog;
import Factory.IAnimal;

/**
 * DogFactory
 * @description 具体狗工厂
 * @author answer_wx
 * @date 2022/6/29 16:19
 * @version 1.0
 */
public class DogFactory implements AnimalFactory {
    @Override
    public IAnimal createAnimal() {
        System.out.println("工厂方法创建一只狗");
        return new Dog();
    }
}